﻿package plugin.roletwo
{
    import com.core.*;
    import com.sh.game.consts.*;
    import com.sh.game.global.*;
    import view.*;

    public class Roletwo extends FlashUIBase
    {
        private var _ctrl:RoletwoCtrl;

        public function Roletwo()
        {
            return;
        }// end function

        override protected function preLoaderInit() : void
        {
            super.preLoaderInit();
            appendLoader(Config.getUrl("assets/images/mornui/roleN.swf", ResourceType.NORMAL));
            appendLoader(Config.getUrl("assets/images/mornui/common.swf", ResourceType.NORMAL));
            return;
        }// end function

        override protected function initGUI() : void
        {
            super.initGUI();
            this._ctrl = new RoletwoCtrl(this);
            mGUI = this._ctrl;
            return;
        }// end function

        override protected function openRefresh() : void
        {
            super.openRefresh();
            this._ctrl.openRefresh(this.data);
            ModelProxy.change("plugin", "open", {target:"role"});
            return;
        }// end function

    }
}
